package com.ruoyi.web.service.Impl;

import com.ruoyi.web.entity.User;
import com.ruoyi.web.mapper.UserMapper;
import com.ruoyi.web.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> all() {
        return userMapper.all();
    }

    @Override
    public Integer add(User user) {
        return userMapper.add(user);
    }

    @Override
    public Integer row(int id) {
        return userMapper.row(id);
    }

    @Override
    public Integer del(User user) {
        return userMapper.del(user);
    }
}
